<?php
namespace app\sign\model;

use think\Model;

class Signlist extends Model
{

    public function newsign(){
        $data = $this->limit(1)->order('Id desc') ->select();
        return $data;
    }

    public function addsign($signName,$beginDT,$endDT,$signType){
        $Data = [
            "sname" => $signName,
            "begin" => $beginDT,
            "end" => $endDT,
            "type" => $signType
        ];
        return $this->insert($Data);
    }
}